package cz.semjob.linguistic.reader.attribute.czech;

import org.springframework.stereotype.Component;

import cz.semjob.linguistic.reader.attribute.ANumberAttribute;

@Component
public class CzechNumberAttribute extends ANumberAttribute {
	
	private final static String DUAL = "DUAL";
	private final static String PLURAL = "PLURAL";
	private final static String SINGULAR = "SINGULAR";
	private final static String SING_FEM_PLUR_NEUTER = "SING_FEM_PLUR_NEUTER";
	private final static String ANY = "ANY";
	public static final String NONE = "NONE";
	
	private final static String[] values = new String[] { DUAL, PLURAL, SINGULAR, SING_FEM_PLUR_NEUTER, ANY, NONE };

	public String[] getValues() {
		return values;
	}
	
	public String getValue(String input) {
		if (input.equals("D")) {
			return DUAL;
		} else if (input.equals("P")) {
			return PLURAL;
		} else if (input.equals("S")) {
			return SINGULAR;
		} else if (input.equals("W")) {
			return SING_FEM_PLUR_NEUTER;
		} else if (input.equals("X")) {
			return ANY;
		} else if (input.equals("-")){
			return NONE;
		} else {
			return null;
		}
	}
	
	


}
